import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-08-18
 * Time: 10:27
 */
public class Main {
    public static void main(String[] args) {
//        Test test = new Test();
//        int[] arr = {8828,9581,49,9818,9974,9869,9991,10000,10000,
//                10000,9999,9993,9904,8819,1231,6309};
//        int ret = test.minOperations(arr,134365);
//        System.out.println(666);

//        Test test = new Test();
//        String s1 = "cbaebabacd";
//        String s2 = "abc";
//        List<Integer> ret = test.findAnagrams(s1,s2);
//        System.out.println(666);

        Test test = new Test();
        String s = "wordgoodgoodgoodbestword";
        String[] arr = {"word","good","best","good"};
        List<Integer> ret = test.findSubstring(s,arr);
        System.out.println(666);
    }
}